package com.wis;

import com.wis.mapper.BannerMapper;
import com.wis.mapper.NoticeMapper;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
public  class NoticeTest {
    @Autowired
    private NoticeMapper noticeMapper;
    @Autowired
    private BannerMapper bannerMapper;

    /**
     * 查询所有公告
     * **/
    @Test
    public void showNotice() {
        log.info("{}", noticeMapper.showOneNotice(1));
        System.out.println(noticeMapper.showNoticeCount());
    }

    /**
     * 查询轮播图图片
     * **/
    @Test
    public void showImg() {
        log.info("{}", bannerMapper.showImg());
    }

}
